import java.util.ArrayList;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @Author: Yun
 * @Date: 2025/6/9
 */


class Animal{
    public String name;
    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }
}
class Dog extends Animal{
    private int age;
    public Dog() {
    }
    public Dog(String name) {
        super(name);
    }

    @Override
    public String toString() {
        return "Dog{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
public class Demo1 {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        Dog dog2 = new Dog("aaa");
        System.out.println(dog2.toString());
    }
}
